package com.ticket.sass.admin.dto.input.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 管理员修改密码输入
 * @author ywb
 * @date 2021-12-08 14:10
 */
@Data
@ApiModel(value = "修改密码输入DTO", description = "按照要求填写")
public class AdminUpdPasswordInput {
    @NotNull(message = "id 不能为空")
    @ApiModelProperty(value = "id", required = true)
    private Long id;
    
    @NotBlank(message = "登录密码不能为空")
    @ApiModelProperty(value = "新登录密码 长度应6~20", required = true)
    private String newPassword;
}
